package com.gym.openapi.dao;

import com.gym.openapi.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 *@author:ming
 *@Date: 2021/11/26
 *@description:客户管理
 */
public interface CustomerMapper {

    /**
     * @author:ming
     * @Date: 2021/11/26
     * @description:客户页面显示分页
     */
    List<Customer> getTable(@Param("name") String name, @Param("state")  Integer state);

/**
 *@author:ming
 *@Date: 2021/11/26
 *@description:批量删除
 */
    int del(Integer[] ids);



    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKeyWithBLOBs(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> getAll();

}